package com.amigo.online.common.param.dto.group;

import javax.validation.constraints.Digits;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;

public class QuitGroupDto {
	@Digits(integer=20,fraction=0)
	private Long groupId;
	@Max(2)
	@Min(1)
	private Integer type;	//1自己退出群 2管理员移除群
	
	private Long userId;	//退出者ID  .如果是管理员踢人，则需要传此参数
	
	public Long getGroupId() {
		return groupId;
	}
	public void setGroupId(Long groupId) {
		this.groupId = groupId;
	}
	public Integer getType() {
		return type;
	}
	public void setType(Integer type) {
		this.type = type;
	}
	public Long getUserId() {
		return userId;
	}
	public void setUserId(Long userId) {
		this.userId = userId;
	}
	
}
